package com.ld.control.business.equipment.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ld.control.business.equipment.mapper.ReagentMapper;
import com.ld.control.business.equipment.model.ReagentModel;
import com.ld.control.business.equipment.service.ReagentService;
import com.ld.control.business.equipment.vo.resp.ReagentRespVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 设备的试剂 服务实现类
 * </p>
 *
 * @author wangfeng
 * @since 2024-08-03
 */
@Service
public class ReagentServiceImpl extends ServiceImpl<ReagentMapper, ReagentModel> implements ReagentService {

    @Autowired
    private ReagentMapper reagentMapper;

    @Override
    public IPage<ReagentRespVo> getPageList(Integer current, Integer size) {
        IPage<ReagentRespVo> page = new Page<>(current, size);
        return reagentMapper.selectAlList(page);
    }
}
